﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 数据验证
{
    struct Xinshidai
    {
        /// <summary>
        /// Id
        /// </summary>
        public string petId ;

        /// <summary>
        /// 精灵名字
        /// </summary>
        public string petName ;

        /// <summary>
        /// 进化Id
        /// </summary>
        public string nextPetId ;

        /// <summary>
        /// 前置ID
        /// </summary>
        public string prePetId ;

        /// <summary>
        /// 系列ID
        /// </summary>
        public string serise ;

        /// <summary>
        /// 属性1
        /// </summary>
        public string element1 ;

        /// <summary>
        /// 属性2
        /// </summary>
        public string element2 ;

        /// <summary>
        /// 角色珍稀度展示
        /// </summary>
        public string petRankShow ;

        /// <summary>
        /// 属性Id（种族值）
        /// </summary>
        public string petAbilityId ;

        /// <summary>
        /// 性别
        /// </summary>
        public string sex ;

        /// <summary>
        /// 是否有性别
        /// </summary>
        public string isNullSex ;

        /// <summary>
        /// 是否闪光
        /// </summary>
        public string flash ;

        /// <summary>
        /// 是否存在图鉴之中
        /// </summary>
        public string isInPokeindex ;

        /// <summary>
        /// 成长技能
        /// </summary>
        public string growSkill ;

        /// <summary>
        /// 学习机技能
        /// </summary>
        public string studySkill ;

        /// <summary>
        /// 普通特性
        /// </summary>
        public string characteristic ;

        /// <summary>
        /// 升阶所需条件
        /// </summary>
        public string petUpgradeCondition ;

        /// <summary>
        /// 升星所需条件
        /// </summary>
        public string petStarIncreaseCondition ;

        /// <summary>
        /// 进化所需条件
        /// </summary>
        public string evolutionCondition ;




        /// <summary>
        /// 放生掉落
        /// </summary>
        public string ReleaseDropId;

        /// <summary>
        /// z招式
        /// </summary>
        public string zMove ;

        /// <summary>
        /// 是否为究极精灵
        /// </summary>
        public string isNotMelt ;

        /// <summary>
        /// 转生条件
        /// </summary>
        public string awakenAgainCondition;

        /// <summary>
        /// 是否转生精灵
        /// </summary>
        public string isAwakenAgain;

        /// <summary>
        /// 转生属性
        /// </summary>
        public string petAwakenAgainAbilityId;


        public SortedList<int, string> GetShort()
        {
            string[] name = {"petId","petName", "nextPetId", "prePetId", "serise", "petRankShow", "element1", "element2",
            "petAbilityId", "sex", "isNullSex", "isInPokeindex", "flash", "growSkill", "studySkill", "characteristic",
            "petUpgradeCondition", "petStarIncreaseCondition", "evolutionCondition",  "ReleaseDropId", "zMove", 
            "isNotMelt", "awakenAgainCondition", "isAwakenAgain" , "petAwakenAgainAbilityId"};
            SortedList<int, string> sl = new SortedList<int, string>();
            for (int i = 0; i < name.Length; i++)
            {
                sl.Add(i, name[i]);
            }
            sl.TrimExcess();
            return sl;
        }
        public SortedList<int, string> GetShortName()
        {
            string[] name = { "精灵Id", "精灵名字", "进化Id", "前置Id", "成长技能", "学习技能", "普通特性", "特性列表" ,  "升阶条件" , "升星条件" ,
            "升星材料","进化条件","进化材料", "放生掉落","Z技能", "是否究极", "转生条件", "是否转生", "转生属性"};
            SortedList<int, string> sl = new SortedList<int, string>();
            for (int i = 0; i < name.Length; i++)
            {
                sl.Add(i, name[i]);
            }
            sl.TrimExcess();
            return sl;
        }
    }
}
